package com.ruoyi.common.core.domain.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 部门表 sys_dept
 *
 * @author ruoyi
 */
public class SysDept extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门ID */
    private Long deptId;

    /** 父部门ID */
    private Long parentId;

    /** 祖级列表 */
    private String ancestors;

    /** 部门名称 */
    private String deptName;

    /** 显示顺序 */
    private String orderNum;

    /** 负责人 */
    private String leader;

    /** 联系电话 */
    private String phone;

    /** 邮箱 */
    private String email;

    /** 部门状态:0正常,1停用 */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 父部门名称 */
    private String parentName;

    /** 子部门 */
    private List<SysDept> children = new ArrayList<SysDept>();
    /** 项目名称*/
    private List<String> xmName;
    /** 项目名称s*/
    private List<Integer> xmNames;
    /** 项目总额*/
    private List<BigDecimal> totalFund;
    /** 中央资金*/
    private List<BigDecimal> centralFund;
    /** 省级资金*/
    private List<BigDecimal> provincialFunds;
    /** 其他资金*/
    private List<BigDecimal> otherFund;
    //一级项目总数
    private Integer count;
    //二级项目总数
    private Integer count1;
    private BigDecimal totalcount;
    private BigDecimal cencount;
    private BigDecimal procount;
    private BigDecimal othercount;

    public List<Integer> getXmNames() {
        return xmNames;
    }

    public void setXmNames(List<Integer> xmNames) {
        this.xmNames = xmNames;
    }

    public BigDecimal getTotalcount() {
        return totalcount;
    }

    public void setTotalcount(BigDecimal totalcount) {
        this.totalcount = totalcount;
    }

    public BigDecimal getCencount() {
        return cencount;
    }

    public void setCencount(BigDecimal cencount) {
        this.cencount = cencount;
    }

    public BigDecimal getProcount() {
        return procount;
    }

    public void setProcount(BigDecimal procount) {
        this.procount = procount;
    }

    public BigDecimal getOthercount() {
        return othercount;
    }

    public void setOthercount(BigDecimal othercount) {
        this.othercount = othercount;
    }

    public List<BigDecimal> getCentralFund() {
        return centralFund;
    }

    public void setCentralFund(List<BigDecimal> centralFund) {
        this.centralFund = centralFund;
    }

    public List<BigDecimal> getProvincialFunds() {
        return provincialFunds;
    }

    public void setProvincialFunds(List<BigDecimal> provincialFunds) {
        this.provincialFunds = provincialFunds;
    }

    public List<BigDecimal> getOtherFund() {
        return otherFund;
    }

    public void setOtherFund(List<BigDecimal> otherFund) {
        this.otherFund = otherFund;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getCount1() {
        return count1;
    }

    public void setCount1(Integer count1) {
        this.count1 = count1;
    }

    public List<String> getXmName() {
        return xmName;
    }

    public void setXmName(List<String> xmName) {
        this.xmName = xmName;
    }

    public List<BigDecimal> getTotalFund() {
        return totalFund;
    }

    public void setTotalFund(List<BigDecimal> totalFund) {
        this.totalFund = totalFund;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getParentId()
    {
        return parentId;
    }

    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public String getAncestors()
    {
        return ancestors;
    }

    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    @NotBlank(message = "部门名称不能为空")
    @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符")
    public String getDeptName()
    {
        return deptName;
    }

    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    @NotBlank(message = "显示顺序不能为空")
    public String getOrderNum()
    {
        return orderNum;
    }

    public void setOrderNum(String orderNum)
    {
        this.orderNum = orderNum;
    }

    public String getLeader()
    {
        return leader;
    }

    public void setLeader(String leader)
    {
        this.leader = leader;
    }

    @Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符")
    public String getPhone()
    {
        return phone;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getParentName()
    {
        return parentName;
    }

    public void setParentName(String parentName)
    {
        this.parentName = parentName;
    }

    public List<SysDept> getChildren()
    {
        return children;
    }

    public void setChildren(List<SysDept> children)
    {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("deptId", getDeptId())
                .append("parentId", getParentId())
                .append("ancestors", getAncestors())
                .append("deptName", getDeptName())
                .append("orderNum", getOrderNum())
                .append("leader", getLeader())
                .append("phone", getPhone())
                .append("email", getEmail())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("xmName", getXmName())
                .append("totalFund", getTotalFund())
                .append("centralFund", getCentralFund())
                .append("provincialFunds", getProvincialFunds())
                .append("count", getCount())
                .append("count1", getCount1())
                .append("totalcount", getTotalcount())
                .append("cencount", getCencount())
                .append("procount", getProcount())
                .append("othercount", getOthercount())
                .toString();
    }
}
